package com.lzs.bootsafety.business.sys.mapper;

import com.lzs.bootsafety.business.sys.entity.SysUserPost;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysUserPostMapper {
    /**
     * 批量添加用户岗位
     * @param sysUserPosts
     * @return
     */
    int insertSysUserPost(List<SysUserPost> sysUserPosts);

    /**
     * 根据userId删除关联岗位
     * @param userId
     * @return
     */
    int deleteSysUserPost(List<Long> userId);
    int deleteByPrimaryKey(Long id);

    int insert(SysUserPost record);

    int insertSelective(SysUserPost record);

    SysUserPost selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserPost record);

    int updateByPrimaryKey(SysUserPost record);
}